/*
 * @Author: WangLi
 * @Date: 2021-07-21 08:40:46
 * @LastEditors: WangLi
 * @LastEditTime: 2021-07-21 08:55:46
 * @Description:
 */

export function getCurrentEnv() {
  const accountInfo = wx.getAccountInfoSync();
  const env = accountInfo.miniProgram.envVersion;
  if (env) {
    if (env === "develop") {
      return "dev";
    } else if (env === "trial") {
      return "uat";
    } else {
      return "prod";
    }
  }
  return "dev";
}
